package com.mes.cloud.api.dto.request.product;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * 产品
 * 
 * @author xy
 * @version 2019-08-20 14:30:12
 * @email yuan.xue3@pactera.com
 */
@Data
public class ProductPageRequest implements Serializable{
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "当前页", required = true)
    @NotNull(message = "currentPage不能为空")
    private int currentPage;

    @ApiModelProperty(value = "每页条数", required = true)
    @NotNull(message = "pageSize不能为空")
    private int pageSize;

    @ApiModelProperty(value = "排序", required = false)
    private String orderBy;

    @ApiModelProperty(value = "主键", required = false)
    private String id;

    @ApiModelProperty(value = "编码", required = false)
    private String code;

    @ApiModelProperty(value = "名称", required = false)
    private String name;

    @ApiModelProperty(value = "产品类型(字典值:1.竞品 2.成品 3.流通商品 4.低值易耗品 5.半成品 6.辅助材料)", required = false)
    private String type;

    @ApiModelProperty(value = "目录id", required = false)
    private String productDirectoryId;

    @ApiModelProperty(value = "数据来源(1.SAP 2.FSFA 3.CRM)", required = false)
    private String source;

    @ApiModelProperty(value = "状态(0：禁用，1：启用)", required = false)
    private String enableFlag;

    @ApiModelProperty(value = "更新日期", required = false)
    private String updateDateStr;

    @ApiModelProperty(value = "版本", required = false)
    private Integer version;

    @ApiModelProperty(value = "产品名称/产品编码", required = false)
    private String queryString;

}
